﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using E_Commerce.Domain.Entities;
using E_Commerce.Application.Dto;//引用
using E_Commerce.Domain.Dto;

namespace E_Commerce.Domain.Interfaces
{
   public interface IOrderRepository:IRepository<Orders>
    {
        /// <summary>
        /// 显示+查询+分页
        /// </summary>
        /// <param name="pageIndex">页索引</param>
        /// <param name="pageSize">页大小</param>
        /// <param name="oName">订单名称</param>
        /// <param name="orderstatic">订单状态</param>
        /// <returns></returns>
        List<OrdersDto> GetOrders(int pageIndex,int pageSize, out int totalCountint, string OrderNumber,int orderstatic);

        /// <summary>
        /// 修改订单状态
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        int UptOrderStatic(int id);
        /// <summary>
        /// 订单详情页
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<List<ProductDto>> OrderFind(int id);
        /// <summary>
        /// 生成预支付订单
        /// </summary>
        /// <param name="o"></param>
        /// <returns></returns>
      Task<int> Advancepayment(Orders o);

    }
}
